﻿using Coldairarrow.Entity.Base_Manage;
using Coldairarrow.Util;
using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
    [Map(typeof(Base_RoleDTO))]
    public class Base_RoleOutputDTO : Base_Role
    {
        public string CompanyName { get; set; }
        public string DepartName { get; set; }
        public RoleTypes? RoleType { get => RoleName?.ToEnum<RoleTypes>(); }
        public List<string> Actions { get; set; } = new List<string>();
    }
    public class Base_RoleDTO : Base_Role
    {
        public string CompanyName { get; set; }
        public string DepartName { get; set; }
    }
}
